<template>
  <div class="page">
    <div class="header">
      <div class="title">{{title}}</div>
    </div>
    <div class="nav-bar">
      <nav-bar></nav-bar>
    </div>
    <div class="workspace">
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
import NavBar from '@/components/navbar/NavBar.vue'
import {mapState} from 'vuex';
export default {
  components: {
    NavBar
  },
  computed:mapState([
    'title'
  ]),
}
</script>

<style scoped>
  .page{
    width: 98%;
    left: 2px;
    position: relative;
  }
  .header{
    position: absolute;
    left: 64px;
    top: 0;
    height: 64px;
    width: 98.8%;
    background-color: gray;
  }
  .nav-bar{
    position: absolute;
    left: 0;
    top: 0;
    width: 64px;
    min-height: 1038px;
    background-color: rgba(23, 28, 58, 1);
  }
  .workspace{
    position: absolute;
    left: 74px;
    top: 74px;
    width: 1294px;
    min-height: 960px;
  }
  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
  }
  .title {
    font-size: 1.5em;
    margin-left: 20px;
    width: 150px;
    float: left;
    padding-top: 14px;
  }
  .account {
    position: relative;
    text-align: right;
    padding-right: 20px;
    float: right;  
    margin-top: 10px;
  }
  .name{
      margin-left: 20px;
      margin-right: 20px;
  }
  .icon{
    position: relative;
    vertical-align: middle;
    display: inline-block;
  }
</style>